﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ODetils.aspx.cs" Inherits="ODetils" MasterPageFile="~/admin/MasterPage2.master" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

        
    
    <table cellpadding="0" cellspacing="0" align="left" bgcolor="White" width="1050">
                        <tr>
                            <td bgcolor="#FA7E02" class="style24">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td  class="style24">
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                               
                            </td>
                        </tr>
                        <tr>
                            <td  class="style24">&nbsp;
                               
                            </td>
                        </tr>
                        <tr>
                            <td class="style24">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td valign="top" class="style24">
                                <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                                    Width="1100px" meta:resourcekey="TabContainer1Resource1">
                                    <asp:TabPanel runat="server" HeaderText="     Order      Details      " 
                                        ID="TabPanel1" Width="150px" meta:resourcekey="TabPanel1Resource1">
                                        <HeaderTemplate> 
                                            
 
                                            
 
                                            
 
                                            
 
                                            
 
                                            
 
                                            
 
                                            Details</HeaderTemplate>
                                        


<ContentTemplate>
    <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0"><tr>
        <td bgcolor="White" rowspan="3" valign="top" width="500">
                <table class="style19" 
                width="500" cellpadding="0" border="0"><tr><td class="letrabold" bgcolor="#FA7E02" colspan="4" 
            align="left">Property Information</td></tr>
    <tr>
        <td class="style60" height="24" width="90">
            Order #</td>
        <td class="style61" height="24">
            <asp:TextBox ID="torder" runat="server" CssClass="txtForm" Enabled="False" 
                meta:resourceKey="torderResource1" Width="150px" Height="20px"></asp:TextBox>
        </td>
        <td class="style29" height="24">
            </td>
        <td align="right" class="style61" height="24">
            <asp:ImageButton ID="editbutton" runat="server" Height="23px" 
                ImageUrl="~/img/Editorder.gif" OnClick="editbutton_Click" Visible="False" 
                Width="72px" />
        </td>
    </tr>
    <tr bgcolor="#FFFFFF"><td class="letraNegra13" width="90">Type</td><td height="24">
        <asp:DropDownList ID="jobtype" runat="server" AutoPostBack="True" 
                    CssClass="txtForm" DataTextField="name" DataValueField="product_id" 
                    Enabled="False" meta:resourceKey="jobtypeResource1" 
                    OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" 
            Width="152px" Height="22px"></asp:DropDownList></td><td class="letraNegra13" width="90">Status</td>
        <td align="right" height="24">
            <asp:DropDownList ID="cbstatus" runat="server" AutoPostBack="True" 
                    CssClass="txtForm" Enabled="False" Width="152px" Height="22px"></asp:DropDownList>
            </td></tr><tr>
                        <td class="letraNegra13" width="90">Company</td>
                        <td height="24">
                            <asp:DropDownList ID="company" runat="server" CssClass="txtForm" 
                    Enabled="False" meta:resourceKey="companyResource1" Width="152px" Height="22px"></asp:DropDownList></td>
                        <td class="letraNegra13" width="90">Account</td><td align="right">
                        <asp:DropDownList 
                    ID="account" runat="server" CssClass="txtForm" Enabled="False" 
                    meta:resourceKey="accountResource1" Width="152px" Height="22px"></asp:DropDownList></td>
        </tr>



                    <tr bgcolor="#FFFFFF" >                   
                    <td class="letraNegra13" colspan="4"> 
                    <asp:Panel ID="Panel5" runat="server" BorderWidth="0px" Visible="False"  >   
                    <table cellpadding="0" cellspacing="0" align="center" width="100%">
                    <tr bgcolor="#FFFFFF">                   
                    <td class="letraNegra13" width="84" >  
                    Order Date  
                    </td>
                    <td height="24">                            
                        <asp:TextBox ID="torderdate" runat="server" CssClass="txtForm" Enabled="False" 
                            meta:resourceKey="torderdateResource1" Width="150px"></asp:TextBox>                         
                    </td>
                    <td class="letraNegra13" width="90" align="left">Order Time                            
                    </td>
                    <td align="right" height="24">
                       <asp:TextBox 
                        ID="tordertime" runat="server" CssClass="txtForm" Enabled="False" 
                        meta:resourceKey="tordertimeResource1" Width="150px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" 
                            TargetControlID="torderdate">
                        </asp:CalendarExtender>
                    </td>
                    </tr>                              
                    </table>
                    </asp:Panel>   
                    </td>
                    </tr>     




                    
                    
                    <tr>
                            <td class="letraNegra13" width="90">
                                Due Time </td>
                            <td>
                                <asp:TextBox ID="tduedate" runat="server" CssClass="txtForm" Enabled="False" 
                                    Width="150px"></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" 
                                    TargetControlID="tduedate">
                                </asp:CalendarExtender>
                            </td>
                            <td class="letraNegra13" width="90">
                                Due Date</td>
                            <td align="right">
                                <asp:DropDownList ID="duetime" runat="server" CssClass="txtForm" 
                                    Enabled="False" Width="79px" Height="22px">
                                    <asp:ListItem>Select One</asp:ListItem>
                                    <asp:ListItem>01:00</asp:ListItem>
                                    <asp:ListItem>02:00</asp:ListItem>
                                    <asp:ListItem>03:00</asp:ListItem>
                                    <asp:ListItem>04:00</asp:ListItem>
                                    <asp:ListItem>05:00</asp:ListItem>
                                    <asp:ListItem>06:00</asp:ListItem>
                                    <asp:ListItem>07:00</asp:ListItem>
                                    <asp:ListItem>08:00</asp:ListItem>
                                    <asp:ListItem>09:00</asp:ListItem>
                                    <asp:ListItem>10:00</asp:ListItem>
                                    <asp:ListItem>11:00</asp:ListItem>
                                    <asp:ListItem>12:00</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="duetimeampm" runat="server" CssClass="txtForm" 
                                    Enabled="False" Font-Names="Arial Narrow" Font-Size="10pt" Width="68px" 
                                    Height="22px">
                                    <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                                    <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <tr bgcolor="#FFFFFF">
                                <td class="letraNegra13" width="90">
                                    Street #</td>
                                <td height="24">
                                    <asp:TextBox ID="tstnumber" runat="server" CssClass="txtForm" Enabled="False" 
                                        Width="150px"></asp:TextBox>
                                </td>
                                <td class="letraNegra13" width="90">
                                    Street Address</td>
                                <td align="right" height="24">
                                    <asp:TextBox ID="tstaddress" runat="server" CssClass="txtForm" Enabled="False" 
                                        Width="150px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="letraNegra13" width="90">
                                    City</td>
                                <td height="24">
                                    <asp:TextBox ID="tcity" runat="server" CssClass="txtForm" Enabled="False" 
                                        Width="150px"></asp:TextBox>
                                </td>
                                <td class="letraNegra13" width="90">
                                    County</td>
                                <td align="right" height="24">
                                    <asp:DropDownList ID="county" runat="server" CssClass="txtForm" Enabled="False" 
                                        meta:resourceKey="countyResource1" Width="152px" Height="22px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr bgcolor="#FFFFFF">
                                <td class="letraNegra13" width="90">
                                    State</td>
                                <td lang="24">
                                    <asp:DropDownList ID="state" runat="server" AppendDataBoundItems="True" 
                                        AutoPostBack="True" CssClass="txtForm" DataValueField="state_id" 
                                        Enabled="False" OnSelectedIndexChanged="fillcounties_SelectedIndexChanged" 
                                        Width="152px" Height="22px">
                                    </asp:DropDownList>
                                </td>
                                <td class="letraNegra13" width="90">
                                    Zip</td>
                                <td align="right" height="24">
                                    <asp:TextBox ID="tzip" runat="server" CssClass="txtForm" Enabled="False" 
                                        Width="150px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                              
                                <td bgcolor="#FFFFFF" class="style38" width="90">
                                    Special Attributes</td>
                                <td bgcolor="#FFFFFF" height="24" valign="middle">
                                    <asp:DropDownList ID="attributes" runat="server" CssClass="txtForm" 
                                        Width="152px" Height="22px">
                                        <asp:ListItem>No</asp:ListItem>
                                        <asp:ListItem>Yes</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td bgcolor="#FFFFFF" valign="middle">
                                </td>
                                 <td bgcolor="#FFFFFF" valign="middle">
                                </td>
                            </tr>
                            <tr>
                                <td class="letraNegra13" width="90">
                                    Comments</td>
                                <td colspan="3" width="410">
                                    <asp:TextBox ID="comments" runat="server" BorderStyle="Solid" 
                                        CssClass="txtForm" Enabled="False" Height="60px" TextMode="MultiLine" 
                                        Width="99%"></asp:TextBox>
                                </td>
                            </tr>   
                            <tr>
                            <td colspan="4">&nbsp;</td>
                            </tr>

                            <!-- Inicio de bloque de BPO payment information -->
                            <tr> 
                            <td colspan="4">
                                    <table class="style19" border="0" cellpadding="0" >                                   
                                        <tr>
                                            <td bgcolor="#FA7E02" class="letrabold" colspan="4" width="500">

                                                <strong>Payment Information</strong></td>
                                        </tr>
                                        <tr bgcolor="White">
                                            <td ass="style38" class="letraNegra13" width="80">
                                                Fee($)
                                            </td>
                                            <td bgcolor="White">
                                                <asp:TextBox ID="tfee" runat="server" CssClass="txtForm2" Enabled="False" 
                                                    Width="150px"></asp:TextBox>
                                            </td>
                                            <td class="letraNegra13" width="100">
                                                Check #</td>
                                            <td>
                                                <asp:TextBox ID="tcheck" runat="server" CssClass="txtForm" Enabled="False" 
                                                    Width="150px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#FFFFFF">
                                            <td bgcolor="#FFFFFF" class="letraNegra13" width="80">
                                                Paid
                                            </td>
                                            <td bgcolor="White">
                                                <asp:DropDownList ID="paid" runat="server" CssClass="txtForm" Enabled="False" 
                                                    Width="152px" Height="22px">
                                                    <asp:ListItem></asp:ListItem>
                                                    <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td bgcolor="#FFFFFF" class="letraNegra13" width="100">
                                                Profit($)
                                            </td>
                                            <td bgcolor="#FFFFFF" ID="profit">
                                                <asp:TextBox ID="profit" runat="server" CssClass="txtForm" Enabled="False" 
                                                    Width="150px" Height="20px"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>                             
                               </td>
                               </tr> 
                               <!-- fin de bloque panel BPO payment information -->
                               

                               <!-- inicio de bloque panel PSF payment information -->
                               <tr>
                               <td colspan="4">
                               <table class="style19">
                                    <tr>
                                        <td bgcolor="#9AC9F8" class="letrabold" colspan="4" width="500">
                                            <strong>Pacific Star Financial</strong></td>
                                    </tr>
                                    <tr bgcolor="White">
                                        <td ass="style38" class="letraNegra13" width="80">
                                            Fee($)</td>
                                        <td bgcolor="White">
                                            <asp:TextBox ID="PsfFee" runat="server" CssClass="txtForm" Enabled="False" 
                                                Width="150px" Height="20px"></asp:TextBox>
                                        </td>
                                        <td class="letraNegra13" width="100">
                                            Check #</td>
                                        <td>
                                            <asp:TextBox ID="PsfCheck" runat="server" CssClass="txtForm" Enabled="False" 
                                                Width="150px" Height="20px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr bgcolor="#FFFFFF">
                                        <td bgcolor="#FFFFFF" class="letraNegra13" width="80">
                                            Paid</td>
                                        <td bgcolor="White">
                                            <asp:DropDownList ID="PsfPaid" runat="server" CssClass="txtForm" Width="152px" 
                                                Height="22px">
                                                <asp:ListItem></asp:ListItem>
                                                <asp:ListItem>Yes</asp:ListItem>
                                                <asp:ListItem>No</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td bgcolor="#FFFFFF" class="letraNegra13" width="100">
                                            Profit($)</td>
                                        <td bgcolor="#FFFFFF">
                                            <asp:TextBox ID="psfprofit" runat="server" CssClass="txtForm" Enabled="False" 
                                                Width="150px" Height="20px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                </td>
                                </tr>
                                <!-- fin de bloque panel PSF payment information -->
                               
                               


                            
                            
                                           

                </table></td>
                

                <td align="right" valign="top">
                    <table width="100%" cellpadding="0">
                    <tr align="right">
                    <td>
                        <asp:Panel ID="Pprocess" runat="server" Width="550px">
                        <table border="0" cellpadding="0" cellspacing="0">
                        <tr >
                        <td class="letrabold" bgcolor="#FA7E02"  align="left" width="550px">Assignment 
                            Information
                        </td>
                        </tr>
                        </table>                                 
                        </asp:Panel>
                    </td>
                    </tr>
                  
                    <tr align="right">


        <td>
            <asp:Panel ID="PFailAdd" runat="server" Width="550px">
                
                <table border="0" cellpadding="0" cellspacing="0"><tr ><td class="letrabold" bgcolor="#FA7E02"  align="left" width="550px">Quality Information</td></tr></table>
                <table border="0" cellpadding="0" cellspacing="0" width="550">
                    <tr bgcolor="#9AC9F8" class="letrabold">
                        <td align="left" class="letrabold">
                            Failed
                        </td>
                        <td align="left" class="letrabold">
                            Reason&nbsp;&nbsp;</td>
                        <td align="left" class="letrabold">
                            Agent Reassign&nbsp; &nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr align="left">
                        <td align="left" class="letraNegra">
                            <asp:DropDownList ID="cbfailed" runat="server" AutoPostBack="True" 
                                CssClass="txtForm" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged" 
                                Width="60px">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>Yes</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="left" class="style34">
                            <asp:DropDownList ID="cbreason" runat="server" AutoPostBack="True" 
                                CssClass="txtForm" DataSourceID="SqlDataSource2" DataTextField="description" 
                                DataValueField="fail_id" Enabled="False" 
                                OnSelectedIndexChanged="cbreason_SelectedIndexChanged" Width="150px">
                            </asp:DropDownList>
                            
                        </td>
                        <td align="left" class="letraNegra13">
                            <asp:DropDownList ID="cbagentreassign" runat="server" CssClass="txtForm" 
                                Width="150px">
                            </asp:DropDownList>                            
                        </td>
                        <td>
                            
                        </td>
                    </tr>
                    <tr>
                    <td></td><td></td><td></td>
                    <td align="right">
                         <asp:ImageButton ID="ImageButton8" runat="server" Height="21px" 
                                ImageUrl="~/img/add.gif"  Visible="False" 
                                Width="45px" />
                         <asp:ImageButton ID="ImageButton9" runat="server" ImageUrl="~/img/detalle.png" 
                                OnClick="ImageButton4_Click" />
                    </td>
                    </tr>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BDConnectionString %>" 
                                SelectCommand="SELECT fail_id, UPPER(description) AS description FROM FAIL">
                            </asp:SqlDataSource>
                </table>
            </asp:Panel>
        </td>
    </tr>




    <tr align="left"><td><asp:Panel ID="PFailDetail" runat="server" Visible="False"><asp:GridView ID="gv_fail" runat="server" CellPadding="4" 
                        EmptyDataText="No fails registered" Font-Names="Arial Narrow" Font-Size="Small" 
                        ForeColor="#333333" GridLines="None" HorizontalAlign="Right" OnRowDataBound="r" 
                        ShowHeaderWhenEmpty="True" Width="550px"><AlternatingRowStyle BackColor="White"></AlternatingRowStyle><EditRowStyle BackColor="#2461BF" Font-Names="Arial Narrow" Font-Size="Larger"></EditRowStyle><EmptyDataRowStyle BorderStyle="Solid"></EmptyDataRowStyle><FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"></FooterStyle><HeaderStyle BackColor="#9AC9F8" Font-Bold="False" Font-Names="Arial Narrow" Font-Size="Smaller" 
                            ForeColor="White" HorizontalAlign="Left"></HeaderStyle><PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle><RowStyle BackColor="#EFF3FB"></RowStyle><SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle></asp:GridView></asp:Panel></td></tr>
     
    
    <!-- contact info -->
    <tr align="right">
        <td>
            <asp:Panel ID="PAppInfo" runat="server" Width="550px">
                
                <table border="0" cellpadding="0" cellspacing="0"><tr ><td class="letrabold" bgcolor="#FA7E02"  align="left" width="550px">Appointment Information</td></tr></table>
                <table border="0" cellpadding="0" cellspacing="0" width="550">
                    <tr>
                        <td align="left" class="letraNegra13" >
                            Contact Information
                        </td> 
                        <td align="left" class="letraNegra13">
                            <asp:TextBox ID="contactapp" runat="server" Width="150px" CssClass="txtForm" 
                                Height="18px"></asp:TextBox>
                        </td>

                        <td align="left" class="letraNegra13">
                            Appt. Date&nbsp;&nbsp;</td>
                        <td align="left" class="style56">
                            <asp:TextBox ID="dateapp" runat="server" CssClass="txtForm" Height="18px" 
                                Width="150px" ></asp:TextBox>
                            <asp:CalendarExtender ID="CalendarExtender7" runat="server" Enabled="True" 
                             TargetControlID="dateapp"></asp:CalendarExtender>
                            
                        </td>
                    
                    
                    </tr>



                    <tr  >  
                    <td align="left" class="letraNegra13">
                            Appt. Comments&nbsp; &nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="letraNegra13" align="left" height="18">
                            <asp:TextBox ID="TextBox2" runat="server" CssClass="txtForm" Height="18px" 
                                Width="150px" TextMode="MultiLine" ></asp:TextBox>                            
                    </td>                     
                    <td align="left" class="letraNegra13">
                            Coordinator &nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="letraNegra13" align="left" height="18">
                            <asp:TextBox ID="TextBox3" runat="server" Width="150px"></asp:TextBox>
                    </td>                        
                    </tr>
                    
                </table>
            </asp:Panel>


            <asp:Panel ID="PnlCallRecords" runat="server" Width="550px">
                
                <table border="0" cellpadding="0" cellspacing="0"></table>
                <table border="0" cellpadding="0" cellspacing="0" width="550">
                    <tr bgcolor="#9AC9F8" class="letrabold">
                            <td align="left" class="letrabold" width="85" >
                            Date</td>
                        <td align="left" class="letrabold" width="150">
                            Time</td>
                        <td align="left" class="letrabold" width="155">
                            Outcome&nbsp; &nbsp;&nbsp;&nbsp;
                        </td>
                        <td align="left" class="letrabold" width="155">
                            Coordinator&nbsp; &nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr align="left">
                        <td align="left" class="letraNegra">
                            <asp:TextBox ID="appdate" runat="server" Width="80px"></asp:TextBox>
                            <asp:CalendarExtender ID="CalendarExtender5" runat="server" Enabled="True" 
                             TargetControlID="appdate"></asp:CalendarExtender>
                        </td>
                        <td align="left" class="style34">
                            <asp:DropDownList ID="appTime" runat="server" AutoPostBack="True" 
                                CssClass="txtForm" DataTextField="description"                                 
                                OnSelectedIndexChanged="cbreason_SelectedIndexChanged" Width="80px">
                             <asp:ListItem>Select One</asp:ListItem>
                             <asp:ListItem>01:00</asp:ListItem>
                             <asp:ListItem>02:00</asp:ListItem>
                             <asp:ListItem>03:00</asp:ListItem>
                             <asp:ListItem>04:00</asp:ListItem>
                             <asp:ListItem>05:00</asp:ListItem>
                             <asp:ListItem>06:00</asp:ListItem>
                             <asp:ListItem>07:00</asp:ListItem>
                             <asp:ListItem>08:00</asp:ListItem>
                             <asp:ListItem>09:00</asp:ListItem>
                             <asp:ListItem>10:00</asp:ListItem>
                             <asp:ListItem>11:00</asp:ListItem>
                             <asp:ListItem>12:00</asp:ListItem>
                            </asp:DropDownList>
                            
                            <asp:DropDownList runat="server" CssClass="txtForm" 
                             Font-Names="Arial Narrow" Font-Size="10pt" Width="70px" ID="apptimeampm">
                            <asp:ListItem Text="AM" Value="AM"></asp:ListItem>
                            <asp:ListItem Text="PM" Value="PM"></asp:ListItem>
                            </asp:DropDownList>
                       </td>
                        

                        <td align="left" class="letraNegra13">
                            <asp:DropDownList ID="appOutcome" runat="server" CssClass="txtForm" 
                                Width="150px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:DropDownList ID="appCoordinator" runat="server" CssClass="txtForm" 
                                Width="150px">
                            </asp:DropDownList>
                                                       
                        </td>
                    </tr>
                    <tr>
                    <td></td><td></td><td></td>
                    <td align="right">
                    <asp:ImageButton ID="ImageButton1" runat="server" Height="21px" 
                                ImageUrl="~/img/add.gif"  Width="45px" />
                     <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/img/detalle.png" 
                                OnClick="ImageButton4_Click" />
                    </td> 
                    </table>
            </asp:Panel>
            
            <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                ConnectionString="<%$ ConnectionStrings:BDConnectionString %>" 
                SelectCommand="SELECT fail_id, UPPER(description) AS description FROM FAIL">
            </asp:SqlDataSource>
            
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BDConnectionString %>" 
                                SelectCommand="SELECT fail_id, UPPER(description) AS description FROM FAIL">
                            </asp:SqlDataSource>

            <tr align="left"><td><asp:Panel ID="P_callingrecords" runat="server">
                <asp:GridView ID="gv_appointment" runat="server" CellPadding="4" 
                        EmptyDataText="No appointment registered" Font-Names="Arial Narrow" Font-Size="Small" 
                        ForeColor="#333333" GridLines="None" HorizontalAlign="Right" OnRowDataBound="r" 
                        ShowHeaderWhenEmpty="True" Width="550px"><AlternatingRowStyle BackColor="White"></AlternatingRowStyle><EditRowStyle BackColor="#2461BF" Font-Names="Arial Narrow" Font-Size="Larger"></EditRowStyle><EmptyDataRowStyle BorderStyle="Solid"></EmptyDataRowStyle><FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White">
                        </FooterStyle><HeaderStyle BackColor="#9AC9F8" Font-Bold="False" Font-Names="Arial Narrow" Font-Size="Smaller" 
                            ForeColor="White" HorizontalAlign="Left"></HeaderStyle><PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center"></PagerStyle><RowStyle BackColor="#EFF3FB"></RowStyle><SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle></asp:GridView></asp:Panel></td>
            </tr>
        </td>
    </tr>
    <!-- contact info -->

    <tr><td> 
        <asp:TextBox ID="appshe" runat="server" Visible="False"></asp:TextBox>
        </td></tr>


    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BDConnectionString %>" 
                                SelectCommand="SELECT fail_id, UPPER(description) AS description FROM FAIL"  >
                            </asp:SqlDataSource>



    <tr align="right"><td><asp:Panel ID="Panel1" runat="server" HorizontalAlign="Right" 
                meta:resourceKey="Panel1Resource1" Visible="False" Width="550px"><table cellpadding="0" cellspacing="0" width="500"><tr><td align="left" bgcolor="#FA7E02" class="letrabold" colspan="2">Pickup Address</td></tr><tr><td bgcolor="#FFFFFF" class="letraNegra13">Street Number</td><td bgcolor="#FFFFFF"><asp:TextBox ID="tpstnum" runat="server" CssClass="txtForm" Enabled="False" 
                                meta:resourceKey="tpstnumResource1" Width="250px"></asp:TextBox></td></tr><tr><td class="letraNegra13">Street Address</td><td><asp:TextBox ID="tpstadd" runat="server" CssClass="txtForm" Enabled="False" 
                                meta:resourceKey="tpstaddResource1" Width="250px"></asp:TextBox></td></tr><tr><td bgcolor="#FFFFFF" class="letraNegra13">City</td><td bgcolor="#FFFFFF"><asp:TextBox ID="tpcity" runat="server" CssClass="txtForm" Enabled="False" 
                            meta:resourceKey="tpcityResource1" Width="250px"></asp:TextBox></td></tr><tr><td class="letraNegra13">State</td><td><asp:DropDownList ID="cbOPState" runat="server" AutoPostBack="True" 
                                CssClass="txtForm" Enabled="False" meta:resourceKey="cbOPStateResource1" 
                                Width="250px"></asp:DropDownList></td></tr><tr><td bgcolor="#FFFFFF" class="letraNegra13">Zip</td><td bgcolor="#FFFFFF"><asp:TextBox ID="tpzip" runat="server" CssClass="txtForm" Enabled="False" 
                                meta:resourceKey="tpzipResource1" Width="250px"></asp:TextBox></td></tr><tr><td class="style20">&#160;</td><td>&#160;</td></tr></table></asp:Panel></td></tr><tr><td>&nbsp;</td></tr></table></td></tr><tr><td  bgcolor="White" class="style16">&nbsp;</td></tr><tr><td>
    &nbsp;</td></tr><tr align="center"><td >&nbsp;</td></tr><tr align="center"><td colspan= "2">
        <table border="0" cellpadding="0" ><tr align="center"><td><asp:ImageButton ID="saveclose" runat="server" 
                                            ImageUrl="~/img/save and close.gif" meta:resourceKey="ImageButton1Resource1" 
                                            OnClick="saveclose_Click" Visible="False" /></td><td align="center"><asp:ImageButton ID="savesubmit" runat="server" 
                                            ImageUrl="~/img/save and submit.gif" meta:resourceKey="ImageButton3Resource1" 
                                            OnClick="savesubmit_Click" Visible="False" /></td></tr></table></td></tr></table></ContentTemplate>
                                    


</asp:TabPanel>
                                    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Photos" 
                                        meta:resourcekey="TabPanel2Resource1">
                                        <ContentTemplate><table class="style41" border="0" cellpadding="0"><tr><td width="500"><table cellpadding="0" cellspacing="0" class="style19"><tr><td><table class="style19" cellpadding="0" border="0"><tr>
                                            <td class="style45" colspan="2">
                                                <asp:Panel ID="Panel3" runat="server">
                                                    <asp:Label ID="Address" runat="server" Font-Bold="True" 
                                                        Font-Names="Arial Narrow" Font-Size="Large" Text="Label"></asp:Label>
                                                </asp:Panel>
                                            </td></tr>
                                            <tr><td class="style58">Photos Received</td><td class="style59">
                                                <asp:DropDownList ID="photosreceived" runat="server" CssClass="txtForm" 
                                                                                    Width="150px"><asp:ListItem>NO</asp:ListItem><asp:ListItem>YES</asp:ListItem></asp:DropDownList>
                                                &nbsp;&nbsp;&nbsp;
                                                <asp:ImageButton ID="ImageButton7" runat="server" ImageAlign="Middle" 
                                                                                ImageUrl="~/img/Editorder.gif" 
                                                    onclick="ImageButton7_Click" Height="23px" />
                                                                                    
                                                                                    </td>
                                            </tr>
                                            <tr valign="middle">
                                                <td class="style57">
                                                    Uploaded by</td>
                                                <td class="style42" valign="middle" align="left">
                                                    <asp:DropDownList ID="cbuploadby" runat="server" CssClass="txtForm" 
                                                        Width="150px">
                                                    </asp:DropDownList>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style57">Complete Set?</td><td class="style42">
                                                <asp:DropDownList ID="completeset" runat="server" CssClass="txtForm" 
                                                                                    Width="150px"><asp:ListItem>NO</asp:ListItem><asp:ListItem>YES</asp:ListItem></asp:DropDownList></td>
                                            </tr>
                                            <tr>
                                                <td class="style57">Date Uploaded</td><td><asp:TextBox ID="dateupload" 
                                                    runat="server" CssClass="txtForm" Enabled="False" 
                                                                                             Width="146px" 
                                                    ontextchanged="dateupload_TextChanged"></asp:TextBox><asp:CalendarExtender ID="CalendarExtender4" runat="server" Enabled="True" 
                                                                                                 TargetControlID="dateupload"></asp:CalendarExtender></td></tr><tr>
                                                <td class="style57">Time Uploaded</td><td class="style42">
                                                <asp:TextBox ID="timeupload" runat="server" CssClass="txtForm" Enabled="False" 
                                                                                    Width="146px"></asp:TextBox></td></tr>
                                                <tr>
                                                <td class="style57" ID="tdexterioronly">
                                                    <asp:Panel ID="PExPho1" runat="server">
                                                        Exterior Photos Only?</asp:Panel>
                                                    </td><td class="style42">
                                                        <asp:Panel ID="PExPho2" runat="server" Height="23px">
                                                            <asp:DropDownList ID="typeonly" runat="server" CssClass="txtForm" Width="150px">
                                                                <asp:ListItem>NO</asp:ListItem>
                                                                <asp:ListItem>YES</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </asp:Panel>
                                                    </td></tr><tr>
                                                <td class="style57">Comments</td><td class="style42">
                                                <asp:TextBox ID="commnetsphotos"   onkeyDown="checkTextAreaMaxLength(this,event,'1000');"
                                                    runat="server" CssClass="txtForm" Height="100px" 
                                                                                    TextMode="MultiLine" Width="275px" 
                                                    MaxLength="1000"></asp:TextBox>
                                                </td></tr></table></td></tr></table></td>
                                           
                                            <td valign="top" align="center"><asp:Panel ID="Panel2" runat="server" HorizontalAlign="Center">
                                                <asp:TextBox  runat="server" AutoPostBack="True" 
                                                  Visible="False" Width="55px"></asp:TextBox>
                                                                                
                                                <asp:Image ID="photoMain" runat="server" ImageUrl="~/img/notphoto.png" 
                                                                Width="500px" /></asp:Panel></td></tr><tr><td bgcolor="#FA7E02">&nbsp;</td><td bgcolor="#FA7E02">&nbsp;</td></tr><tr><td colspan="2"><asp:Panel ID="PBoxPhoto" runat="server"></asp:Panel></td></tr><tr align="right">
                                            <td colspan="2" bgcolor="#FA7E02">
                                                &nbsp;</td></tr>
                                            <tr align="right" valign="middle">
                                                <td colspan="2">
                                                    <asp:TextBox ID="emailowner" runat="server" CssClass="txtForm" Width="200px"></asp:TextBox>
                                                    <asp:ImageButton ID="email" runat="server" 
                                                        ImageAlign="AbsBottom" ImageUrl="~/img/emailphotosgreen.gif" 
                                                        OnClick="email_Click" />
                                                    <asp:ImageButton ID="upload" runat="server" ImageAlign="AbsMiddle" 
                                                        ImageUrl="~/img/uploadphotos.gif" OnClick="upload_Click" style="height: 28px" />
                                                    <asp:ImageButton ID="saveclosephoto" runat="server" ImageAlign="AbsMiddle" 
                                                        ImageUrl="~/img/save and close.gif" OnClick="saveclosephoto_Click" />
                                                </td>
                                            </tr>
                                            <tr valign="top"><td><asp:DropDownList ID="productlist" runat="server" CssClass="txtForm" 
                                                            Width="250px"></asp:DropDownList>
                                                <asp:ImageButton ID="ImageButton6" 
                                                    runat="server" ImageUrl="~/img/addnew.gif" 
                                                            onclick="ImageButton6_Click" /></td><td>&nbsp;</td></tr><tr><td>
                                            &nbsp;</td><td>&nbsp;</td></tr></table></ContentTemplate>
                                    
                                    </asp:TabPanel>
                                    <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Comps" 
                                        meta:resourcekey="TabPanel3Resource1">
                                     <ContentTemplate>
                                     <table cellpadding="0" border="0">
                                     <tr bgcolor="White">
                                     <td class="style38">As Is Value</td>
                                     <td bgcolor="White">
                                     <asp:TextBox ID="asisValue" runat="server" CssClass="txtForm" 
                                      Enabled="False" Width="100px">
                                      </asp:TextBox></td>
                                      <td class="style39">Repaired Value
                                      </td>
                                      <td>
                                      <asp:TextBox ID="repair" runat="server" CssClass="txtForm" Enabled="False"  Width="100px">
                                      </asp:TextBox></td></tr><tr bgcolor="#FFFFFF"><td bgcolor="#FFFFFF" class="style38">Effective Date</td>
                                      <td bgcolor="White"><asp:TextBox ID="efectivedate" runat="server" CssClass="txtForm" 
                                      Enabled="False" Width="100px"></asp:TextBox><asp:CalendarExtender ID="CalendarExtender3" runat="server" 
                                      Enabled="True" TargetControlID="efectivedate"></asp:CalendarExtender></td><td bgcolor="#FFFFFF" class="style40">&#160;</td><td bgcolor="#FFFFFF">&#160;</td></tr>
                                    </table> 
                                    </ContentTemplate>
                                    </asp:TabPanel> 

                                          
                                </asp:TabContainer>
                                
                            </td>
                        </tr>
                        <tr align="center">
                            <td class="style24">&nbsp;</td> 
                        </tr>
                       
</table>







</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style16
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 16px;
            text-decoration: none;
        }
        .style19
        {
            width: 100%;
        }
        .style20
        {
            width: 138px;
        }
        .style24
        {            margin-left: 40px;
        }
        
        .style29
        {
            width: 98px;
            height: 27px;
        }
        .style34
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 166px;
        }
        .style38
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 88px;
            vertical-align:middle;
        }
        .style39
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 97px;
        }
        .style40
        {
            width: 97px;
        }
        .style41
        {
            width: 1000px;
        }
        .style42
        {
            width: 359px;
        }
        .style45
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 14px;
            text-decoration: none;
            }
        .style56
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 168px;
        }
        .style57
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 14px;
            text-decoration: none;
            width: 137px;
        }
        .style58
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 14px;
            text-decoration: none;
            width: 137px;
            height: 24px;
        }
        .style59
        {
            width: 359px;
            height: 24px;
        }
        .style60
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            height: 27px;
        }
        .style61
        {
            height: 27px;
        }
        .txtForm2
        {
        	border: 1px Solid #FA7E02;	
	        text-align: left;       
	 	    color:#000000;
		    font-style:normal;
		    font-family:Arial Narrow;	                    
            font-size:13px;
            text-decoration:none;
        }
        </style>

       


    <script  type="text/javascript" >
        function checkTextAreaMaxLength(textBox, e, length) {


         
            var mLen = textBox["MaxLength"];
            if (null == mLen)
                mLen = length;

            var maxLength = parseInt(mLen);
            if (!checkSpecialKeys(e)) {
                if (textBox.value.length > maxLength - 1) {
                    if (window.event)//IE
                        e.returnValue = false;
                    else//Firefox
                        e.preventDefault();
                }
            }
        }
        function checkSpecialKeys(e) {
            if (e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40)
                return false;
            else
                return true;
        }        
    
    </script>






</asp:Content>
